package com.wangshouyu.mp.pay.scene;

import com.alibaba.fastjson.annotation.JSONField;
import com.fasterxml.jackson.annotation.JsonProperty;
import com.google.gson.annotations.SerializedName;

import java.io.Serializable;
import java.util.Objects;

/**
 * @author 王守钰
 * @description 门店场景信息
 * @date 2020/8/13 10:54
 */
public class StoreSceneInfo implements Serializable {

    /**
     * 场景id
      */
    private String id;

    /**
     * 场景名称
     */
    private String name;

    /**
     * 区域代码
     */
    @SerializedName(value = "area_code")
    @JsonProperty(value = "area_code")
    @JSONField(name = "area_code")
    private String areaCode;

    /**
     * 地址
     */
    private String address;

    public String getId() {
        return id;
    }

    public void setId(String id) {
        this.id = id;
    }

    public String getName() {
        return name;
    }

    public void setName(String name) {
        this.name = name;
    }

    public String getAreaCode() {
        return areaCode;
    }

    public void setAreaCode(String areaCode) {
        this.areaCode = areaCode;
    }

    public String getAddress() {
        return address;
    }

    public void setAddress(String address) {
        this.address = address;
    }

    @Override
    public boolean equals(Object o) {
        if (this == o) {
            return true;
        }
        if (o == null || getClass() != o.getClass()) {
            return false;
        }
        StoreSceneInfo that = (StoreSceneInfo) o;
        return Objects.equals(id, that.id) &&
                Objects.equals(name, that.name) &&
                Objects.equals(areaCode, that.areaCode) &&
                Objects.equals(address, that.address);
    }

    @Override
    public int hashCode() {
        return Objects.hash(id, name, areaCode, address);
    }

    @Override
    public String toString() {
        return "StoreSceneInfo{" +
                "id='" + id + '\'' +
                ", name='" + name + '\'' +
                ", areaCode='" + areaCode + '\'' +
                ", address='" + address + '\'' +
                '}';
    }
}
